package cn.wanho.controller.user;

import cn.wanho.rvo.ResultVO;
import cn.wanho.service.CmsUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private CmsUserService cmsUserService;
    /**
     * 登录
     * @return
     */
    @PostMapping("/login")
    public ResultVO login(){
        return null;
    }

    /**
     * 修改密码
     * @return
     */
    @PostMapping("/modifyPassword")
    public ResultVO modifyPassword(String oldPassword,String newPassword){
        return cmsUserService.modifyPassword(oldPassword,newPassword);
    }

    /**
     * 修改个人信息（头像/自我介绍）
     * @return
     */
    @PostMapping("/modifySelf")
    public ResultVO modifySelf(String oldPass,String newPass){

        return null;
    }


}
